package com.koron.order.patrol.service;

import com.github.pagehelper.PageInfo;
import com.koron.bean.query.PageQuery;
import com.koron.order.patrol.bean.po.PatrolEnvCheckPo;
import org.koron.ebs.mybatis.SessionFactory;

import java.util.List;

/**
 * 巡视工单-巡视点_巡视环境_检查项从表(PatrolEnvCheck)表服务接口
 *
 * @author zhouj
 * @since 2021-10-26 15:24:44
 */
public interface PatrolEnvCheckService {

    int insertOrUpdate(SessionFactory factory, PatrolEnvCheckPo patrolEnvCheck);

    int insertOrUpdateBatch(SessionFactory factory, List<PatrolEnvCheckPo> patrolEnvCheckList);

    int insert(SessionFactory factory, PatrolEnvCheckPo patrolEnvCheck);

    int insertBatch(SessionFactory factory, List<PatrolEnvCheckPo> patrolEnvCheckList);

    int update(SessionFactory factory, PatrolEnvCheckPo patrolEnvCheck);

    int deleteById(SessionFactory factory, String id);

    PatrolEnvCheckPo queryById(SessionFactory factory, String id);

    PageInfo queryPageList(SessionFactory factory, PatrolEnvCheckPo patrolEnvCheck, PageQuery pageQuery);

    List<PatrolEnvCheckPo> queryList(SessionFactory factory, PatrolEnvCheckPo patrolEnvCheck);

    List<PatrolEnvCheckPo> queryByPatrolPointId(SessionFactory factory, String patrolPointId);

}
